<template>
	<view>
		<view class="listItem br-b tui-flex" v-for="(item,index) in list" :key="index">
			<view class="listItem-content">
				<view class="title" v-text="item.title"></view>
				<view class="info" v-text="item.info"></view>
			</view>
			<view class="another">
				<view v-if="item.stat == 0" class="another-2" v-text="'+' + item.another" style="color: #FC5A44;"></view>
				<view v-else class="another-2" v-text="'-' + item.another"></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'Newslist',
		props:{
			list:Array,
			urls: Number
		},
		data() {
			return {
				
			}
		},
		created() {
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
	.listItem {
		background: $uni-bg-color;
		padding: 20rpx 30rpx;
		.listItem-content {
			box-sizing: border-box;
			flex: 1;
			.title {
				text-overflow: -o-ellipsis-lastline;
				overflow: hidden;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-line-clamp: 1;
				line-clamp: 1;
				-webkit-box-orient: vertical;
			}
			.info {
				color: #777777;
				font-size: $uni-font-size-sm + 2rpx;
				text-overflow: -o-ellipsis-lastline;
				overflow: hidden;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-line-clamp: 2;
				line-clamp: 2;
				-webkit-box-orient: vertical;
				text-align: left;
			}
			.another {
				text-align: right;
				font-size: $uni-font-size-md;
			}
		}
		.another-2 {
			font-size: $uni-font-size-lg;
			font-weight: bold;
		}
	}
</style>
